import myaxios from  '@/mytools/myaxios'

export function DictionaryTypeTableAdd(info) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTypeTable/DictionaryTypeTableAdd',
      method: 'post',
      data: info,
    })
  }

  export function DictionaryTypeTableDelete(dbtypeKey) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTypeTable/DictionaryTypeTableDelete?dbtypeKey='+dbtypeKey,
      method: 'post',
    })
  }

  export function DictionaryTypeTableEdit(dbtypeKey) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTypeTable/DictionaryTypeTableEdit',
      method: 'get',
      params: { dbtypeKey: dbtypeKey },
    })
  }

  export function DictionaryTypeTableUpdate(info) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTypeTable/DictionaryTypeTableUpdate',
      method: 'post',
      data: info,
    })
  }

  export function SearchPage(searchModel) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/DictionaryTypeTable/SearchPage',
      method: 'post',
      data:searchModel
    })
  }
